import request from '@/utils/request'
// baseURL: "http://localhost:8081/"
import qs from "qs"


export function getList(params) {
    return request({
        url: '/msbd/list',
        method: 'get',
        params,
        baseURL: "http://localhost:8081/"
    })
}

export function addList(data) {
    // console.log(data)
    return request({
        url: '/msbd/addList',
        method: 'post',
        data: qs.stringify(data),
        baseURL: "http://localhost:8081/"
    })
}

export function updateList(data) {
    return request({
        url: '/msbd/updateList',
        method: 'post',
        data: qs.stringify(data),
        baseURL: "http://localhost:8081/"
    })
}

export function delList(id) {
    return request({
        url: '/msbd/delList',
        method: 'get',
        params: id,
        baseURL: "http://localhost:8081/"
    })
}
